package chp02.homework;

public class Home3 {

    public static void main(String[] args) {
        double money = 1000;

        //利息 = 本金 * 年利率 * 存期
        //本息 = 本金 + 利息
        double one = money + (money * 2.25/100 * 1);
        System.out.println("一年本息:" + one);
        double two = money + (money * 2.7/100 * 2);
        System.out.println("二年本息:" + two);
        double three = money + (money * 3.24/100 * 3);
        System.out.println("三年本息:" + three);
        double five = money + (money * 3.6/100 * 5);
        System.out.println("五年本息:" + five);
    }
}
